import DocsApp from './src/layout';
import { useLocation } from 'react-router';
import { GanClever } from '../../games';

export default props => {
  const l = useLocation();
  const inGame = l.pathname.startsWith('/game');
  return inGame ? <GanClever /> : <DocsApp {...props} />;
};
